home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9102.ARJ
/
9N02098A
< prev
next >
Wrap
Text File
|
1992-07-06
|
331b
|
12 lines
void *sbrk(int n); // prototype for sbrk
char *p,*q; // two pointers for allocated blocks
p = (char *)sbrk(100); // allocate a 100-byte block
q = (char *)sbrk(200); // allocate a 200-byte block
sbrk(-200); // free the 200-byte block
sbrk(-100); // free the 100-byte block